package com.car.dao;

import com.car.entity.Kind;
import com.car.entity.Product;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository("productMapper")
public interface ProductMapper {
    List<Product> findProduct();
    int updateStatus(Product product);
    int deleteProduct(int pid);
    Product findProductById(int pid);
    int updateProduct(Product product);
    int addProduct(Product product);
    List<Product> findKind();

    //------------------------------
    List<Product> findXH();
    int addXH(Product product);
    int updateRUKU(Product product);
    int updateCHUKU(Product product);

    List<Product> findCR();

    //全部记录 入库记录 出库记录
    List<Product> selectCR(String regtime,String churegtime,String sx);

    int updateDigit(Product product);
}
